﻿<Window x:Class="VoiceTestPlatform.AddProjectItemWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="添加到流程" Height="320" Width="480" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>           
            <RowDefinition />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>


        <GroupBox Margin="8,12" Header="当前音频路径：" Grid.Row="1">
            <TextBox IsReadOnly="True" BorderThickness="0" Text="{Binding Path,Mode=OneTime}" FontSize="12"  Margin="8,4,8,8" TextWrapping="Wrap"  />
        </GroupBox>

        <StackPanel Grid.Row="0">
            <GroupBox Margin="8,8"  Header="当前音频路径：">
                <StackPanel  >

                    <StackPanel Orientation="Horizontal">
                        <TextBlock Margin="12,4,4,4">播放次数：</TextBlock>
                        <TextBox Width="120" IsEnabled="{Binding IsCountTextEnable}" 
                         Text="{Binding CountText}"></TextBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Margin="12,4,4,4">是否循环：</TextBlock>
                        <CheckBox Margin="12,0,0,0" VerticalAlignment="Center" IsChecked="{Binding IsLoop}" />
                    </StackPanel>


                </StackPanel>
            </GroupBox>
            <GroupBox Margin="8,8" Header="位置">
                <StackPanel>
                    <TextBlock Text="默认插到最后一项.......to do" Margin="8,8,0,0" />
                </StackPanel>
            </GroupBox>
        </StackPanel>
        <!--footer-->
        <StackPanel Grid.Row="2" Orientation="Horizontal">

            <Button Command="{Binding OKCommand}"  Style="{StaticResource FooterButton}">确定</Button>
            <Button Command="{Binding CancelCommand}" Style="{StaticResource FooterButton}">取消</Button>
        </StackPanel>

    </Grid>
</Window>
